//
//  Pump.h
//  PezMonkey
//
//  Created by Spence DiNicolantonio on 12/23/09.
//  Copyright 2009 Necrosoft. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "PMDemo.h"


@interface Pump : PMDemo {
	// simple motor used to run the pump
	PMSimpleMotor *motor;
	
	// array of balls in the demo
	// (stored so we can reset the position of each ball as it leaves the screen)
	NSMutableArray *balls;
	
	// shared static body
	PMBody *staticBody;
}

@property (nonatomic, retain) PMSimpleMotor *motor;
@property (nonatomic, retain) NSMutableArray *balls;
@property (nonatomic, retain) PMBody *staticBody;

- (PMBody *)addBallAtPoint:(PMVect)point;
- (void)addSegmentWithStart:(PMVect)start end:(PMVect)end;

@end
